package com.system.service.impl;

import com.system.mapper.UploadMapper;
import com.system.po.Upload;
import com.system.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UploadServiceImpl implements UploadService {

    @Autowired
    private UploadMapper uploadMapper;

    @Override
    public int adduploadRecordAndReturnId(Upload upload) {

        return uploadMapper.adduploadRecordAndReturnId(upload);
    }

    @Override
    public Upload selectUploadById(Integer id) {
        return uploadMapper.selectUploadById(id);
    }
}
